package dao.impl;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import dao.CustomerDao;
import po.Customers;
@Repository
public class CustomerDaoImpl implements CustomerDao {
	@PersistenceContext(name="john")
	private EntityManager em;
	@Transactional
	@Override
	public void addCustomer(Customers c) {
		em.persist(c);
	}

}
